package objects;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Monkey on 2017/3/9.
 * 费用信息
 */

public class CostItem implements Parcelable {
    private String cost_name;
    private String cost_quantity;
    private String cost_byself;

    public CostItem() {
    }

    protected CostItem(Parcel in) {
        cost_name = in.readString();
        cost_quantity = in.readString();
        cost_byself = in.readString();
    }

    public static final Creator<CostItem> CREATOR = new Creator<CostItem>() {
        @Override
        public CostItem createFromParcel(Parcel in) {
            return new CostItem(in);
        }

        @Override
        public CostItem[] newArray(int size) {
            return new CostItem[size];
        }
    };

    public String getCost_name() {
        return cost_name;
    }

    public void setCost_name(String cost_name) {
        this.cost_name = cost_name;
    }

    public String getCost_quantity() {
        return cost_quantity;
    }

    public void setCost_quantity(String cost_quantity) {
        this.cost_quantity = cost_quantity;
    }

    public String getCost_byself() {
        return cost_byself;
    }

    public void setCost_byselt(String cost_byselt) {
        this.cost_byself = cost_byselt;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {

        parcel.writeString(cost_name);
        parcel.writeString(cost_quantity);
        parcel.writeString(cost_byself);
    }

}